<style>
<!--
td
{
text-align:center;
}
-->
</style>
<?php 
	defined('_JEXEC') or die('Restricted access'); 
	AdminUIHelper::startAdminArea ();
	JHTML::_('behavior.tooltip'); 
	$param=$this->param;
	$value=array('age'=>'','name'=>'');
	if(isset($this->id)){ $value=array('age'=>$this->row->age,'name'=>$this->row->name);}
?>
<form name='adminForm' action='index.php?option=com_svquanlycanbo&view=sunghiep' method='post'>
	<input type='hidden' name='task' />
	<input type="hidden" name="kaka" value="<?php echo $this->acid; ?>" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $param['order']; ?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $param['order_Dir']; ?>" />
	<div id="editcell">
		<table>
		<tbody><tr>
				<td nowrap="nowrap">
					<?php 
					//echo JHTML::_('select.genericlist',$this->array,'age_id','class="inputbox", onchange="submitform()"','key','text',$value['age']); 
					if($this->acid==0)
					{
					echo $this->list['donvi'];
					echo $this->list['phongban'];
					echo $this->list['canbo'];
					echo ' Number record : '.$this->total;
					}
					?>
				</td>
		</tr>
		</tbody>
	</table>
		<table class='adminlist'>
			<thead>
				<tr>
					<th width="50">#</th>
					<th width="50"><input type="checkbox" name="toggle" value="" onclick="checkAll(10);"></th>
					<th width="150"><?php echo JHTML::_('grid.sort','Tên cán bộ','cb_ten',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th width="150"><?php echo JHTML::_('grid.sort','Tên cột mốc','lsn_ten',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th width="200"><?php echo JHTML::_('grid.sort','Tiêu đề','sn_tieude',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th width="150"><?php echo JHTML::_('grid.sort','Tình trạng','sn_tinhtrang',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th width="150"><?php echo JHTML::_('grid.sort','Thành tích','sn_thanhtich',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th width="150"><?php echo JHTML::_('grid.sort','Địa điểm','sn_diadiem',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th width="80"><?php echo JHTML::_('grid.sort','Time bắt đầu','sn_batdau',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th width="80"><?php echo JHTML::_('grid.sort','Time kết thúc','sn_ketthuc',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th width="100"><?php echo JHTML::_('grid.sort','Cập nhật cuối','timeupdate',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th width="40"><?php echo JHTML::_('grid.sort','ID','bl_id',@$this->param['order_Dir'],@$this->param['order']);?></th>
				</tr>
			</thead>
			<tbody>
				<?php
					$i=0;
					$k=0;
					foreach($this->objectList as $record)
					{
						$checked     = JHTML::_('grid.id',   $k , $record->sn_id);
						$k=$k+1;
						echo '<tr class="row'.$i.'">';
							echo '<td width="50">'.$k.'</td>';
							echo '<td width="50">'.$checked.'</td>';
							echo '<td width="150">
									<a href="index.php?option=com_svquanlycanbo&view=sunghiep&task=edit&cid[]='.$record->sn_id.'" >'.$record->cb_ten.'</a>
								</td>';
							echo '<td width="150">'.$record->lsn_ten.'</td>';
							echo '<td width="200">'.$record->sn_tieude.'</td>';
							echo '<td width="150">'.$record->sn_tinhtrang.'</td>';
							echo '<td width="150">'.$record->sn_thanhtich.'</td>';
							echo '<td width="150">'.$record->sn_diadiem.'</td>';
							echo '<td width="80">'.$record->sn_batdau.'</td>';
							echo '<td width="80">'.$record->sn_ketthuc.'</td>';
							echo '<td width="100">'.$record->idupdate.'<br/>'.$record->timeupdate.'</td>';
							echo '<td width="40">'.$record->sn_id.'</td>';
						echo '</tr>';
						$i=1-$i;	
					}

				?>
			</tbody>
			<tfoot>
				<tr>
					<td colspan="12">
						<?php
						if($this->acid==0)
						echo $this->pager->getListFooter(); 
						?>
					</td>
				</tr>
			</tfoot>
		</table>
	</div>
</form>